package com.lcf.wx.controller;


import com.lcf.wx.dto.WxUserDTO;
import com.lcf.wx.service.WxUserService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * 微信用户表(WxUser)表控制层
 *
 * @author makejava
 * @since 2025-05-22 10:13:22
 */
@Tag(name = "微信用户表")
@RestController
@RequestMapping("wxUser")
public class WxUserController {
    @Resource
    private WxUserService wxUserService;

    /**
     * 修改我的信息
     */
    @Operation(summary = "修改我的信息")
    @PostMapping("updateMyInfo")
    public void updateMyInfo(@RequestBody @Validated WxUserDTO dto) {
        wxUserService.updateMyInfo(dto);
    }
}

